<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>人力资源管理系统</title>
<link rel="stylesheet" rev="stylesheet" href="../css/style.css " type="text/css" media="all" />
<script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" language="javasvript" src="../Js/ajax.js"></script>
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>

</head>
<body class="ContentBody" onload="getDepts(0)">
<% 
Integer generatedID = (Integer)request.getAttribute("generatedID");
if(generatedID!=null&&generatedID>0){
   out.println("<script>alert('录入成功！\n员工编号为："+generatedID+"')</script>");
}
%>
<form name="employeeForm" method="post" action="employee.do?method=add" >
<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >人员信息录入</th>
  </tr>
  <tr>
    <td class="CPanel">
		
		<table width="90%" border="0" cellpadding="0" cellspacing="0" style="width:80%" align="center">
		<tr><td align="left" width="50%">
		<input type="submit"value="保存" class="button"/>　
			
			<input type="reset" value="返回" class="button"/>
		</td><td align="left" width="50%" style="color:red">${requestScope.success}</td></tr>
		
		<TR>
			<TD width="100%" colspan="2">
				<fieldset style="height:100%;">
				<legend>人员信息</legend>
				<table width="100%" border="0" cellpadding="2" cellspacing="1" style="width:100%">
					<tr>
						<td nowrap align="right" width="9%">姓名：</td>
						<td width="36%">
						<input name="name" type="text" class="input" id="name"/>
						<span class="red">*</span></td>
				   		<td width="12%"><div align="right">出生日期：</div></td>
				   		<td width="43%">
				   		<input name="birthday" type="text" class="input" id="birthday" onClick="WdatePicker({isShowWeek:false})"/>
				      	<span class="red">*</span></tr>
					<tr>
						<td nowrap align="right" width="9%">性别：</td>
						<td>
						<input name="sex" type="radio" value="1" checked> 男
						<input name="sex" type="radio" value="0">女</td>
						<td><div align="right">创建时间：</div></td>
						<td>
						<input name="createTime" type="text" class="input" id="createTime" onClick="WdatePicker({isShowWeek:false})">
						<span class="red">*</span></td>
					</tr>
					<tr>
						<td nowrap align="right" width="9%">邮箱：</td>
						<td>
						<input name="email" type="text" class="input" id="email"/>
						<span class="red">*</span></td>
						<td><div align="right">联系电话：</div></td>
						<td>
						<input name="phone" type="text" class="input" id="phone">
						<span class="red">*</span></td>
					</tr>
					<tr>
						<td nowrap align="right" width="9%">所属部门：</td>
						<td>
						<select id="deptId" name="deptId" style="width:155px" onchange="getPositions(this.value)">
						</select>
						<span class="red">*</span></td>
						<td><div align="right">职位：</div></td>
						<td><select id="positionId" name="positionId" style="width:155px">
						<option value="">------------请选择------------</option>
						</select>
						 <span class="red">*</span></td>
					</tr>
					<tr>
						<td nowrap align="right">人员简介：</td>
						<td colspan="3">
						<textarea name="content" cols="100" rows="6" class="input" id="content"></textarea></td>
					</tr>
				</table>
			 		 <br />
				</fieldset>
				</TD>
			
		</TR>
		</TABLE>
	 </td>
  </tr>
		<TR>
			<TD colspan="2" align="center" height="50px">
			<input name="提交" type="submit" class="button" value="保存"/>　
			
			<input name="重置" type="reset" class="button" value="重置"/></TD>
		</TR>
		</TABLE>
</div>
</form>
</body>
</html>